<template>
  <div>
    <el-menu
        style="width: 200px; min-height: 100%"
        :default-active="this.path"
        router
        class="el-menu-vertical-demo"
    >
      <!--calc(100vh)-->
      <el-sub-menu index="1">
        <template #title><el-icon><Edit /></el-icon>下拉菜单</template>
        <el-menu-item index="/test1"><el-icon><User /></el-icon>保留使用</el-menu-item>
      </el-sub-menu>
      <el-menu-item index="/deal"><el-icon><Notebook /></el-icon>处理图像</el-menu-item>
      <el-menu-item index="/test2"><el-icon><Notebook /></el-icon>保留使用</el-menu-item>
    </el-menu>
  </div>
</template>

<script>

import {Edit,Location,Notebook,User,Document,Menu as IconMenu,Setting,} from '@element-plus/icons'

export default {
  name: "Aside",
  data() {
    return {
      user: {},
      path: this.$route.path,
    }
  },
  components: {Edit,User,Notebook,Location,Document,Setting,IconMenu,},

}
</script>

<style scoped>

</style>